﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using StructureMap;
using NetworkIndexer.CoreExtensions.ServiceLocation;
using NetworkIndexer.Data.Repositories;
using NetworkIndexer.Data.Repositories.Concrete;

namespace NetworkIndexer.Data.Configuration
{
    public class ServiceLocatorConfiguration :  IServiceLocatorConfiguration
    {
        public void Configure(ConfigurationExpression configure)
        {  
            //Repository COnfiguration
            configure.ForRequestedType<IDataAccess>().TheDefaultIsConcreteType<DataAccess>();
            configure.ForRequestedType<IFileSystemDataAccess>().TheDefaultIsConcreteType<FileSystemDataAccess>();
            
        }
    }
}
